import Layout from '@/layout'


export default {
    name: 'employees',
    path: '/employees',
    component: Layout,
    children: [
        {
            path: '', // 默认是index
            component: () => import('@/views/employees'),// 引入apprival作为主页面
            meta: {
                // 路由元信息，存储路由信息
                title: '员工',
                icon: 'people'
            }
        },
        {
            path: 'detail/:id',
            name: 'employeeDetail',
            hidden:true, // 在左侧菜单隐藏
            component: () => import('@/views/employees/detail'),
            meta: {
                title:'员工详情'
            }
            
        },
        {
            path: 'print/:id',
            name: 'printPage',
            hidden:true, // 在左侧菜单隐藏
            component: () => import('@/views/employees/print')
            
        }
    ]
}